home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / menu.h < prev    next >
C/C++ Source or Header  |  1995-04-02  |  478b  |  28 lines

  1. #ifndef MENU_H
  2. #define MENU_H
  3.  
  4. // requires sprite.h block.h, screen.h, control.h
  5.  
  6. class
  7. Menu : public Screen
  8. {
  9. private:
  10.     Control *control;
  11.     char **textptr;
  12.     int numitems, current_item, ystart, xstart, yend, xend;
  13.     Block back;
  14.     void centre(char *t,int y);
  15.     Sprite arrow, arrow2;
  16. public:
  17.     Menu(char *text[], int length);
  18.     void update(void);
  19.     void move(void);
  20.     void replace(void);
  21.     void paste(void);
  22.     void getBack(void);
  23.     void setControl(Control *c);
  24.     int choice(void);
  25. };
  26.  
  27. #endif
  28.